Revert "lib: Kill GPG agent when cleaning up tmp homedirs"
authorSimon McVittie <smcv@debian.org>
Fri, 23 Aug 2019 10:22:47 +0000 (11:22 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 19 Sep 2019 16:49:53 +0000 (17:49 +0100)
This reverts commit b6979e7572395f3f99ba328ed9399ed4b862f9a7,
which causes a lot of logging noise when running `flatpak update`.
According to the commit message of b6979e7572395f3f99ba328ed9399ed4b862f9a7
this should be unnecessary with gnupg >= 2.2, which is in Debian >= 10.

Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name Revert-lib-Kill-GPG-agent-when-cleaning-up-tmp-homedirs.patch

src/libostree/ostree-gpg-verifier.c
src/libostree/ostree-repo.c

index 95ed36eed6b8d5596efad92baa5193341f50b587..a279348eb395bcbe563a9842c6c3db52d492120c 100644 (file)
@@ -87,7 +87,6 @@ verify_result_finalized_cb (gpointer data,
    *     finalize() method, but I didn't want this keyring hack
    *     bleeding into multiple classes. */
 
-  ot_gpgme_kill_agent (tmp_dir);
   (void) glnx_shutil_rm_rf_at (AT_FDCWD, tmp_dir, NULL, NULL);
 }
 
index eb652bef0b0b8a715e818970e26fc2973fcc7328..2382f7382e5ac867043875ac895966b5f050db85 100644 (file)
@@ -2328,15 +2328,11 @@ out:
   if (remote != NULL)
     ostree_remote_unref (remote);
 
-  if (source_tmp_dir != NULL) {
-    ot_gpgme_kill_agent (source_tmp_dir);
+  if (source_tmp_dir != NULL)
     (void) glnx_shutil_rm_rf_at (AT_FDCWD, source_tmp_dir, NULL, NULL);
-  }
 
-  if (target_tmp_dir != NULL) {
-    ot_gpgme_kill_agent (target_tmp_dir);
+  if (target_tmp_dir != NULL)
     (void) glnx_shutil_rm_rf_at (AT_FDCWD, target_tmp_dir, NULL, NULL);
-  }
 
   g_prefix_error (error, "GPG: ");